package com.atguigu.gmall.search.pojo;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

//搜索的属性
@Data
public class SearchAttr {
    @Field(type = FieldType.Long)
    private Long id;  //商品和属性关联的数据表的主键id

    @Field(type = FieldType.Long)
    private Long attrId; //当前sku对应的属性的attr_id

    @Field(type = FieldType.Keyword)
    private String attrName;//属性名  电池

    @Field(type = FieldType.Keyword)
    private String attrValue;//3G   3000mah

    @Field(type = FieldType.Long)
    private Long spuId;//这个属性关系对应的spu的id
}
